<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo Yii::app()->name; ?></title>
        <base href="<?php echo Yii::app()->params['baseAddress']; ?>" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="author" content="Q Web Production"/>
        <meta name="DC" content="ita" scheme="RFC1766"/>
        <link rel="image_src" href="" />


        <meta name="keywords" content=""/>
        <meta name="description" content =""/>

        <script language="JavaScript" type="text/JavaScript">
            if (navigator.userAgent.indexOf('MSIE') !=-1){
                document.write('<link REL="SHORTCUT ICON" HREF="<?php echo Yii::app()->params['faviconICO']; ?>"/>');
            }else{
                document.write('<link REL="SHORTCUT ICON" HREF="<?php echo Yii::app()->params['faviconPNG']; ?>"/>');
            }
        </script>


        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/print.css" media="print" />
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/ie.css" media="screen, projection" />
        <![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/form.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>css/incScreen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->params['baseAddress']; ?>script/vegas/jquery.vegas.css" />
        
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['baseAddress'].'script/jyoutube.js'); ?>
    
    </head>
    <body>
        <!--  INIZIO CONTAINER -->
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['baseAddress'].'script/vegas/jquery.vegas.js'); ?>
        <script type="text/javascript">
        
            $(document).ready(function(){
                $.vegas('slideshow', {
                    backgrounds:[
                    { src: '<?php echo Yii::app()->params['baseAddress'].'images/azzurro.jpg'; ?>', fade: 1000,loading:false },
                    { src: '<?php echo Yii::app()->params['baseAddress'].'images/oro.jpg'; ?>', fade: 1000,loading:false },
                    { src: '<?php echo Yii::app()->params['baseAddress'].'images/viola.jpg'; ?>', fade: 1000,loading:false },
                    { src: '<?php echo Yii::app()->params['baseAddress'].'images/verde.jpg'; ?>', fade: 1000,loading:false },
                    { src: '<?php echo Yii::app()->params['baseAddress'].'images/blu.jpg'; ?>', fade: 1000,loading:false }    
                    ]
                    });
                
            });
        </script>
        
        
        <div id="outer">
            <!--  INIZIO HEADER -->

            <div id="header">
                <div id="testata">
                    <img src="images/logo.jpg" alt="" title="" />
                </div>
                <div id="menu">
                    <div id="mainmenu" style="float: left;">
                        <?php
                        $this->widget('zii.widgets.CMenu', array(
                            'encodeLabel'=>false,

                            'items' => array(
                                array('label' =>                                     
                                    'About <img src="images/zed.jpg" width="15"/>', 'url' => array('/site/page', 'view' => 'about')),
                                array('label' => 'Policy', 'url' => array('/site/page', 'view' => 'policy')),                                
                                array('label' => 'Autori', 'url' => array('/autore/admin'), 'visible' => !Yii::app()->user->isGuest),
                                array('label' => 'Testi (opz)', 'url' => array('/editablePart/admin'), 'visible' => !Yii::app()->user->isGuest),
                                //array('label' => 'Tipi Contatto', 'url' => array('/tipoContatto/admin'), 'visible' => !Yii::app()->user->isGuest),
                                //array('label' => 'Tipi Autore', 'url' => array('/tipoAutore/admin'), 'visible' => !Yii::app()->user->isGuest),
                                ),
                        ));
                        ?>

                    </div>
                    <div id="mainmenu" style="float: right;">
                        <?php
                        
                        $this->widget('zii.widgets.CMenu', array(
                            'encodeLabel'=>false,
                            'items' => array(
                                array('label' => 'Home', 'url' => array('/site/index')),
                                array('label' => 'Contact <img src="images/zed.jpg" width="15"/>', 'url' => array('/site/contact')),
                                array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                                array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
                            ),
                        ));
                        ?>

                    </div>
                    
                </div>
                <div>
                    <?php if (isset($this->breadcrumbs)): ?>
                    <br/>
                        <?php
                        $this->widget('zii.widgets.CBreadcrumbs', array(
                            'links' => $this->breadcrumbs,
                        ));
                        ?><!-- breadcrumbs -->
                    <?php endif ?>
                </div>
            </div>

            <!--  FINE HEADER -->

            <!--  INIZIO CONTENT -->
            <div id="content">
                
                    <?php
                    echo $content;
                    ?>

                
                <!--<div id="contentRight">
                    <div id="rightMenu">

                    </div>
                    <div id="musicPlayer">

                    </div>
                </div>-->


            </div>

            <!--  FINE CONTENT -->
            <!--  INIZIO FOOTER-->


            <!--  FINE FOOTER -->
            <!--  FINE CONTAINER -->

        </div>
    </body>
</html>

